<?php
$redis = new Redis();
$redis->connect('127.0.0.1',  6379);

$key = "my.list";

$redis->del($key);
$rt[] = $redis->lpush($key, "first");
$rt[] = $redis->lset($key, 1, "twist");

var_dump($rt);
$data = [
	'ttl' => $redis->ttl($key),
	'data' => $redis->lRange($key, 0, -1)
];
var_dump($data);
